#include"StackQueue.h"

void TestStack()
{
	Stack S;
	StackInit(&S);

	StackPush(&S, 1);
	StackPush(&S, 2);
	StackPush(&S, 3);
	StackPush(&S, 4);
	StackPush(&S, 5);
	// 出栈
	while (!StackEmpty(&S))
	{
		printf("%d ", StackTop(&S));
		StackPop(&S);
	}
	StackDestory(&S);
}
int main()
{
	TestStack();
	return 0;
}